package com.baor.controller;

import com.baor.service.WorkorderService;
import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping(value = "/work")
public class WithdrawalInformationController {
    @Autowired
    private WorkorderService workorderService;

    @RequestMapping(value = "/withdraw")
    public R withdrawList(@RequestBody Map<String,Object> params){
        return workorderService.workorderList(params);
    }

    @RequestMapping(value = "review")
    public R status(@RequestBody Map<String,Object> params){
        return workorderService.withdrawalInformation(params);
    }

    @RequestMapping(value = "withdrawhistory")
    public R wdhistory(@RequestBody Map<String,Object> params){
        return workorderService.withdrawhistory(params);
    }

    @RequestMapping(value = "WithdrawalLog")
    public R WithdrawalLog(@RequestBody Map<String,Object> params){
        return workorderService.WithdrawalLog(params);
    }

    /**
     * 持有人提现统计
     */
    @RequestMapping(value = "HolderWithdrawalStatistics")
    public R HolderWithdrawalStatistics(Map<String, Object> params){
        return workorderService.HWithdrawalStatistics(params);
    }

}
